package com.qn.chain2.impl;

import com.qn.chain2.Handler;
import com.qn.chain2.LeaveRequest;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * 总经理类-具体处理者角色
 *
 * @author QuNing
 * @date 2022/08/19
 */
@Component
@Order(3)
public class GeneralManager extends Handler {

    public GeneralManager() {
        super(Handler.NUM_THREE,Handler.NUM_SEVEN);
    }

    protected void handleLeave(LeaveRequest leave) {
        System.out.println(leave);
        System.out.println("总经理审批：同意");
    }
}
